package factory.factorymethod.pizzastore.order;

import factory.factorymethod.pizzastore.pizz.*;

/**
 * @Author liangliangzhao
 * @data 2023/2/28 13:49
 */

public class LDOrderPizza extends OrderPizza{
    @Override
    Pizz createPizza(String orderType) {
        Pizz pizz = null;
        if (orderType.equals("cheese")){
            pizz = new LDCheesePizza();
        }else if(orderType.equals("pepper")){
            pizz = new LDPepperPizza();
        }

        return pizz;
    }
}
